# _*_ coding: utf-8 _*_f = open("teste.txt", "w")
 
 s = ""
  
 for k in range(10): f.write(s); f.write("\n")
 
 
 f.close()
 

d1 ={'Programacao 1': 15, 'Programacao 2': 13,'Matematica': 12, 'Linguagens Programacao' : 17}
	 
d1['Algebra']= 13

media = 0.0

c = 0

for valor in d1.itervalues():
	
	media += valor
	
	c += 1
	
	media /= c
	
print "media =", media

for chave, valor in d1.iteritems():
	print chave, valor


